package consul.allinone.regist;

import com.google.common.net.HostAndPort;
import com.orbitz.consul.Consul;

public class AbstractConsulService {

    protected final static String SERVICE_NAME = "consul_node_jim";
    protected final static String SERVICE_TAGS = "v3";
    protected final static String CONSUL_HEALTH_INTERVAL = "1s";

    protected Consul buildConsul(String registryHost, int registryPort) {
        return Consul.builder().withHostAndPort(HostAndPort.fromString(registryHost + ":" + registryPort)).build();
    }
}